package com.gopay.bis.manager.bank.impl;

import java.util.Date;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.gopay.bis.dao.payconfig.BankBindCardDAO;
import com.gopay.bis.manager.bank.BankBindCardManager;
import com.gopay.common.domain.bis.BisBankBindCardInfo;
import com.gopay.common.util.DateUtils;

/**
 * 易宝绑卡信息manager实现
 * 
 * @BankBindCardManagerImpl.java
 * @author zhengxue
 * @2015-10-19 下午5:37:43 www.gopay.com.cn Inc.All rights reserved.
 */
@Service("bankBindCardManager")
public class BankBindCardManagerImpl implements BankBindCardManager {
    @Resource(name = "bankBindCardDAO")
    private BankBindCardDAO bankBindCardDAO;

    @Override
    public void addBankBindCard(BisBankBindCardInfo bindCard) {
        bankBindCardDAO.insertBankBindCard(bindCard);
    }

    @Override
    public void updateBindCard(BisBankBindCardInfo bindCard) {
        bankBindCardDAO.updateBindCard(bindCard);
    }

    @Override
    public BisBankBindCardInfo getBindCard(String userId, String cardNo) {
        return bankBindCardDAO.getBindCard(userId, cardNo);
    }

}
